<?php


namespace app\admin\controller;



use app\common\controller\AdminBase;

class Topic extends AdminBase
{
    protected function _initialize()
    {
        $type = [
            1=>'活动攻略',
            2=>'活动问答',
            3=>'活动组团',
            4=>'活动分享',
            //5=>'金点子',
        ];
        $this->assign('type',$type);
        parent::_initialize();
    }

    public function index(){
        return $this->fetch();
    }

    public function get_topic_list(){
        if($this->request->isAjax()){
            $m = new \app\common\model\Topic();
            return $m->getLists();
        }
    }

    public function comment_list(){
        return $this->fetch();
    }

}